﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Avalonia.Data.Converters;

namespace AvaloniaApplication1.Converters
{
    public class ManyInputConverter : IValueConverter
    {
        /// <summary>
        /// 是否可见
        /// </summary>
        public bool IsVisiable { get; set; } = false;

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool input = System.Convert.ToBoolean(value);

            return IsVisiable^input;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}
